/* 将和user相关的请求接口全部维护在该文件中*/

import instance from "@/axios";

export const  captcha = ()=> instance.get('/user/captcha')

export const  login = (userFrom)=> instance.post('/user/login',userFrom)

export const  userPage = (searchPage)=> instance.post('/user/page',searchPage)

export const  changeUserStatus = (state,id)=> instance.put('/user/state',{state,id})

export const  deleteUser = (ids)=> instance.delete('user/delete',{data:ids})

export const   editUserPassword=(id)=>instance.put('/user/password/'+id)

export const   addUser=(form)=>instance.post('/user/add',form)

export const   editUser=(form)=>instance.put('/user/edit',form)

export const  getPersonal=()=>instance.get('/user/personal')

export const  editPersonalInfo=(form)=>instance.put('/user/editPersonal',form)

export const  editPersonalPassword=(form)=>instance.put('/user/editPersonalPassword',form)

export const  Logout=()=>instance.put('/user/Logout')

export const  userMenus=()=>instance.get('/user/menus')